package io;

import game.TicTacToeBoard;
import exceptions.InvalidCharException;
import configuration.Configuration; 
import java.util.Random; 
import java.util.Scanner;

public class MockInputOutput extends InputOutput {

	public TicTacToeBoard board; 
	public InvalidCharException e; 
	
	private int input; 
	private String names; 
	
	public int getMove(){
		Random rn = new Random(); 
		input = rn.nextInt(8); 
		return input; 
	}
	
	public boolean getResponse(){
		return true;  
	}
	
	public boolean checkExit(){
		return true; 
	}
	
	public void showBoard(TicTacToeBoard board){
		board.getValue(0); 
	    System.out.println("A" + ((board.getValue(0) == TicTacToeBoard.EMPTY) ? "-" : board.getValue(0)) + "|" + 
	    				((board.getValue(1) == TicTacToeBoard.EMPTY) ? "-" : board.getValue(1)) + "|" +
	    				((board.getValue(2) == TicTacToeBoard.EMPTY) ? "-" : board.getValue(2)));  
	    System.out.println("---------");
	    System.out.println("B" + ((board.getValue(3) == TicTacToeBoard.EMPTY) ? "-" : board.getValue(3)) + "|" + 
	    				((board.getValue(4) == TicTacToeBoard.EMPTY) ? "-" : board.getValue(4)) + "|" +
	    				((board.getValue(5) == TicTacToeBoard.EMPTY) ? "-" : board.getValue(5)));
	    System.out.println("---------");
	    System.out.println("C" + ((board.getValue(6) == TicTacToeBoard.EMPTY) ? "-" : board.getValue(6)) + "|" + 
	    				((board.getValue(7) == TicTacToeBoard.EMPTY) ? "-" : board.getValue(7)) + "|" +
	    				((board.getValue(8) == TicTacToeBoard.EMPTY) ? "-" : board.getValue(8))); 
	}	
	
	public String getFileLocation(){ 
		String locat = "/Users/MickKellogg/Documents/tictactoehighscores/UserActionLog.rtf"; 
		return locat; 
	}
	
	public String newHighScoreName(){
		names = "Dave"; 
		return names; 
	}
	
}
